package moxl.parser.markup.states;

public enum XmlParserState
{
	START(new StartStateDelegate()),

	ELEMENT_CONTENT(new ElementContentStateDelegate()),

	POSTAMBLE(new PostambleStateDelegate()),

	POST_XML_DECL_STATE(new PostXmlDeclStateDelegate());

	private final XmlDocumentParserStateDelegate delegate;

	XmlParserState(XmlDocumentParserStateDelegate handler)
	{
		this.delegate = handler;
	}

	public XmlDocumentParserStateDelegate getDelegate()
	{
		return delegate;
	}
}
